package com.example.medical.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName division
 */
@TableName(value ="division")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Division implements Serializable {
    /**
     * 科室主键
     */
    @TableId(value = "division_id",type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long divisionId;

    /**
     * 科室名
     */
    @TableField(value = "division_name")
    private String divisionName;

    /**
     * 部门名
     */
    @TableField(value = "division_sector_name")
    private String divisionSectorName;

    /**
     * 部门主键
     */
    @TableField(value = "division_sector_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long divisionSectorId;

    /**
     * 添加时间
     */
    @TableField(value = "save_time")
    private String saveTime;

    /**
     * 逻辑删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}